

# 第二阶段：构建应用程序
FROM maven:3.6.3-openjdk-8 AS builder
WORKDIR /app
COPY . .
RUN mvn clean package

# 第三阶段：部署应用程序
FROM openjdk:8-jdk-slim
WORKDIR /app
COPY --from=builder /app/target/webgis-0.0.1-SNAPSHOT.jar .
EXPOSE 8044
CMD ["java", "-jar", "webgis-0.0.1-SNAPSHOT.jar"]